package com.lanou.test;

import com.lanou.service.PersonService;
import com.lanou.service.impl.PersonServiceImpl;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class XmlAopTest1 {
    public static void main(String[] args) {

        ClassPathXmlApplicationContext ac =
                new ClassPathXmlApplicationContext("spring.xml");
        PersonService personService = ac.getBean(PersonService.class);

        System.out.println(personService.getClass());

        personService.add();
        personService.delete();

    }
}
